//
//  ICMCellPartCell.h
//  ICrEAM
//
//  Created by rainimute on 16/11/22.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMProxyActivityModel.h"

@protocol  ICMCellPartCellDelegate <NSObject>

@optional
- (void)didSelectedStateButtonWithPartCode:(NSString*)PartCode andButtonState:(BOOL)isSelected WithActCode:(NSString *)actCode;

@end

@interface ICMCellPartCell : UICollectionViewCell
@property (nonatomic, weak) id<ICMCellPartCellDelegate>delegate;//代理

@property (weak, nonatomic) IBOutlet UILabel *partNameLabel;//零件名称
@property (weak, nonatomic) IBOutlet UILabel *partIdLabel;//零件id
@property (weak, nonatomic) IBOutlet UILabel *partCountLabel;//零件个数
@property (weak, nonatomic) IBOutlet UIButton *stateButton;//选择状态btn

@property (nonatomic, copy) NSString *ACTIVITY_CODE;//活动代码
- (IBAction)stateButtonAction:(id)sender;
- (void)setupPartsCellWithPartsModel:(ICMProxyActivityPartsModel *)partsModel  WithExistDic:(NSMutableDictionary *)dic;

@end
